[VERSN2]
watermark "Mod made by YochiThMaster333"

// This is required for custom addon generic parts (wheels or spoilers; all NFS games) and/or custom addon vector vinyls (Carbon, ProStreet, Undercover). Without it, custom wheels and vector vinyls might cause many issues to your game (most notably the game crash)
speedreflect auto

// Checks if FrontB.lzc file has been modified with TexEd
if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
do
update_collection FRONTEND\FRONTB.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
else
end

add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_SKYLINEZT SECONDARY_LOGO_SKYLINEZT "SkyZTParts\SECONDARY_LOGO_SKYLINEZT.dds"
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES CARSELECT_MANUFACTURER_NISSAN CARSELECT_MANUFACTURER_NISSAN "SkyZTParts\CARSELECT_MANUFACTURER_NISSAN.dds"
bind_textures synchronize FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES "SkyZTParts\TuningIcons"

move_file override relative absolute SkyZTParts\SKYLINEZT.ini scripts\UnlimiterData\SKYLINEZT.ini

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CARNAME_NISSAN_SKYLINEZT "2005 Nissan Skyline GT-R Nismo Z-Tune"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_1 "Drag"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_2 "Stag"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_3 "Vapor"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_4 "Mantis"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_5 "Stratospeed"
// This line below was originally "C-West" but it was changed to its current line because its Heat model uses a different brand (despite being shaped identical)
// It also used different label, with the only difference was 6 instead of 1 pre-update.
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_6 "Sunline Racing (No Canards)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_7 "Sweeper"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_8 "Verge Wide"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_9 "V-Spec"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_10 "Shadow"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_11 "Sunline Racing"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODYKIT_NSKYZT_12 "Borillo"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MIRRORS_MAZFAM_1 "Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_INTER_NSKYZT_1 "V-Spec (World)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_INTER_NSKYZT_2 "V-Spec (Carbon)"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_HSVGTR_0 "None"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_NSKYZT_1 "Drag"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_NSKYZT_2 "Evo"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_NSKYZT_3 "Supernova"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_NSKYZT_4 "Carbon X"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_NSKYZT_5 "C-West GT Wing I"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_NSKYZT_6 "Flyte"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_NSKYZT_7 "Hammerhead"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HOOD_NSKYZT_1 "Flat Hood"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HOOD_NSKYZT_2 "Copperhead"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HOOD_NSKYZT_3 "Formula-Style"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HOOD_NSKYZT_4 "Synchromax"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HOOD_NSKYZT_5 "Duo Max"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HOOD_NSKYZT_6 "Velocity"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_NSKYZT_1 "Vortex Generators"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_NSKYZT_2 "Safety Car Lights"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_NSKYZT_3 "Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_NSKYZT_4 "Carbon Vortex G."
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HDLGT_NSKYZT_1 "Eyelids"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HDLGT_NSKYZT_2 "Topaz"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HDLGT_NSKYZT_3 "Projector"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HDLGT_NSKYZT_4 "Topix"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NSKYZT_1 "Masked NFSU2"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NSKYZT_2 "Masked NFSU1"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NSKYZT_3 "Streetray"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NSKYZT_4 "V-Spec"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NSKYZT_5 "V-Spec Tinted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NSKYZT_6 "Tinted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MIRRORS_NSKYZT_1 "Echo"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MIRRORS_NSKYZT_2 "Ricocchet"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_LD2111_1 "UNP Classic"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_LD2111_2 "UNP Extreme Brand"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_LD2111_3 "UNP Racer Jr"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_LD2111_4 "UNP Sport"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_LD2111_5 "Sparco Modena"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_MAZFAM_2 "Sparco Roadster"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_BMWTUR_1 "Sparco Milano 2"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_BMWTUR_2 "Sparco Milano 3"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_BMWTUR_3 "Sparco Torino"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_NSKYZT_0 "No Roll Cage"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_NSKYZT_1 "Type 1 Chrome"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_NSKYZT_2 "Type 1 Painted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_NSKYZT_3 "Type 2 Chrome"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_NSKYZT_4 "Type 2 Painted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_REARTRK_NSKYZT_1 "Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_REARTRK_NSKYZT_2 "Debadged"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_REARTRK_NSKYZT_3 "Debadged Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_REARTRK_NSKYZT_4 "Racing"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_REARTRK_NSKYZT_5 "Racing Carbon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_DRIVER_RKSPYD_1 "NFS UC/World Male"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_DRIVER_RKSPYD_2 "NFS UC Female"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_DRIVER_RKSPYD_3 "NFS World Female"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_DRIVER_RKSPYD_4 "NFS PS Driver"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRAKES_NSKYZT_1 "V-Spec"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_1 "Aces of Lust by Lust X"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_2 "Poolballs"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_3 "Samantha Custom"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_4 "Octo"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_5 "Art Factory Eagle"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_6 "Art Factory Green"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_7 "Nismo"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_8 "Eddie"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_9 "Modern Image"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_10 "Dragon"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SKYLINEZT_VINYL_11 "Supra"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMCAGE "Roll Cage"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMSEATS "Seats"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMTRUNK "Rear Trunk"

// Those files are actually unloaded to save RAM, so don't worry ^^
delete FRONTEND\FRONTB.LZC
delete LANGUAGES\ENGLISH.BIN

if collection_exists GLOBAL\GLOBALB.LZC CarTypeInfos SKYLINEZT
do
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos SKYLINEZT
else
end

if collection_exists GLOBAL\GLOBALB.LZC Collisions SKYLINEZT
do
remove_collection GLOBAL\GLOBALB.LZC Collisions SKYLINEZT
else
end

if collection_exists GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII
do
remove_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII
else
end

copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos PUNTO SKYLINEZT
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos SKYLINEZT DefaultBasePaint SKYLINEZT_PAINT_ZTUNE
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos SKYLINEZT ManufacturerName NISSAN
copy_collection GLOBAL\GLOBALB.LZC Collisions PUNTO SKYLINEZT
import override GLOBAL\GLOBALB.LZC DBModelParts SkyZTParts\SKYLINEZT.bin

copy_collection GLOBAL\GLOBALB.LZC Materials METPAINTRED YTMPAINTMPIII
update_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII SpecularPower 10
update_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII SpecularMaxRed 1
update_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII SpecularMinRed 1
update_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII SpecularMinBlue 0.75
update_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII SpecularMaxBlue 0.75
update_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII SpecularMinLevel 3
update_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII SpecularMaxLevel 0.5
update_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII EnvmapPower 0.35
update_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII EnvmapMinLevel 3.5
update_collection GLOBAL\GLOBALB.LZC Materials YTMPAINTMPIII EnvmapMaxLevel 0.2

if directory_exists absolute CARS\SKYLINEZT
do
else
create_folder absolute CARS\SKYLINEZT
end

move_file override relative absolute Main\GEOMETRY.BIN CARS\SKYLINEZT\GEOMETRY.BIN
move_file override relative absolute Main\TEXTURES.BIN CARS\SKYLINEZT\TEXTURES.BIN

combobox "Standard Resolution (512x)" "High Resolution (1024x)" "Choose vinyls resolution."

"Standard Resolution (512x)"
move_file override relative absolute Vinyls\512.BIN CARS\SKYLINEZT\VINYLS.BIN

"High Resolution (1024x)"
move_file override relative absolute Vinyls\1024.BIN CARS\SKYLINEZT\VINYLS.BIN

end
